<template>
  <div>
       数据库 - 用户
      <div>
        <el-button type="primary">新增</el-button>
        <el-table :data="baseRole" style="width: 100%">
          <el-table-column prop="id" label="序号" width="180">
          </el-table-column>
          <el-table-column prop="name" label="名称" width="180">
          </el-table-column>
        </el-table>
    </div>
  </div>
</template>

<script>
import { get } from '@/utils/request';
export default {
  data() {
    return{
      baseRole:[],
      visible:false
    };
  },

  methods:{
    loadBaseRole(){
      let url = "http://localhost:8888/baseRole/query";
      get(url).then(resp =>{
        this.baseRole = resp.data;
      });
    }
  },
  created(){
    this.loadBaseRole();
  }
    
};
</script>

<style lang="sass" scoped>

</style>